/*
 *	This file is part of Lounge-Cast.
 *
 *  Author:  	Markus Moormann
 *	E-mail:  	mmoorman@uni-osnabrueck.de
 *	Copyright:	University of Osnabrueck (Zentrum Virtuos)
 * 	Website:	www.uni-osnabrueck.de
 *	Date:		16.02.2011
 *
 *	Lounge-Cast is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *	Lounge-Cast is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Lounge-Cast.  If not, see <http://www.gnu.org/licenses/>.
 */
package webservice.vo;

import javax.xml.bind.annotation.XmlAttribute;
/**
 * class represents configuration for player
 *
 * @author Markus Moormann
 */
public class Webservice {

	/**
	 * the URL pointing to the webservice
	 */
	@XmlAttribute(name = "url")
	public String url;
	
	/**
	 * the API-Key for authenticating against the webservice
	 */
	@XmlAttribute(name = "api_key")
	public String api_key;
	
	/**
	 * player_id of the player
	 */
	@XmlAttribute(name = "player_id")
	public String player_id;
	
	/**
	 * whether to start fullscreen or not
	 */
	@XmlAttribute(name = "fullscreen_on_startup")
	public boolean fullscreen_on_startup;
	
	/**
	 * whether to show debug-information
	 * default is <code>false</code>
	 */
	@XmlAttribute(name = "debug")
	public boolean debug;
	
	/**
	 * default constructor
	 */
	public Webservice(){}
	
	/**
	 * constructor
	 * 
	 * @param url the URL pointing to webservice
	 * @param api_key key for authenticating against webservice
	 * @param player_id player_id for player
	 */
	public Webservice(String url, String api_key, String player_id) {
		this.url = url;
		this.api_key = api_key;
		this.player_id = player_id;
		this.fullscreen_on_startup = false;
		this.debug = false;
	}
}
